﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200120D RID: 4621
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartChallengeScRsp : IMessage<StartChallengeScRsp>, IMessage, IEquatable<StartChallengeScRsp>, IDeepCloneable<StartChallengeScRsp>, IBufferMessage
	{
		// Token: 0x17003A86 RID: 14982
		// (get) Token: 0x0600CF0F RID: 53007 RVA: 0x0022D987 File Offset: 0x0022BB87
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartChallengeScRsp> Parser
		{
			get
			{
				return StartChallengeScRsp._parser;
			}
		}

		// Token: 0x17003A87 RID: 14983
		// (get) Token: 0x0600CF10 RID: 53008 RVA: 0x0022D98E File Offset: 0x0022BB8E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartChallengeScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003A88 RID: 14984
		// (get) Token: 0x0600CF11 RID: 53009 RVA: 0x0022D9A0 File Offset: 0x0022BBA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartChallengeScRsp.Descriptor;
			}
		}

		// Token: 0x0600CF12 RID: 53010 RVA: 0x0022D9A7 File Offset: 0x0022BBA7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartChallengeScRsp()
		{
		}

		// Token: 0x0600CF13 RID: 53011 RVA: 0x0022D9BC File Offset: 0x0022BBBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartChallengeScRsp(StartChallengeScRsp other) : this()
		{
			this.curChallenge_ = ((other.curChallenge_ != null) ? other.curChallenge_.Clone() : null);
			this.stageInfo_ = ((other.stageInfo_ != null) ? other.stageInfo_.Clone() : null);
			this.scene_ = ((other.scene_ != null) ? other.scene_.Clone() : null);
			this.lineupList_ = other.lineupList_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CF14 RID: 53012 RVA: 0x0022DA51 File Offset: 0x0022BC51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartChallengeScRsp Clone()
		{
			return new StartChallengeScRsp(this);
		}

		// Token: 0x17003A89 RID: 14985
		// (get) Token: 0x0600CF15 RID: 53013 RVA: 0x0022DA59 File Offset: 0x0022BC59
		// (set) Token: 0x0600CF16 RID: 53014 RVA: 0x0022DA61 File Offset: 0x0022BC61
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CurChallenge CurChallenge
		{
			get
			{
				return this.curChallenge_;
			}
			set
			{
				this.curChallenge_ = value;
			}
		}

		// Token: 0x17003A8A RID: 14986
		// (get) Token: 0x0600CF17 RID: 53015 RVA: 0x0022DA6A File Offset: 0x0022BC6A
		// (set) Token: 0x0600CF18 RID: 53016 RVA: 0x0022DA72 File Offset: 0x0022BC72
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStageInfo StageInfo
		{
			get
			{
				return this.stageInfo_;
			}
			set
			{
				this.stageInfo_ = value;
			}
		}

		// Token: 0x17003A8B RID: 14987
		// (get) Token: 0x0600CF19 RID: 53017 RVA: 0x0022DA7B File Offset: 0x0022BC7B
		// (set) Token: 0x0600CF1A RID: 53018 RVA: 0x0022DA83 File Offset: 0x0022BC83
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneInfo Scene
		{
			get
			{
				return this.scene_;
			}
			set
			{
				this.scene_ = value;
			}
		}

		// Token: 0x17003A8C RID: 14988
		// (get) Token: 0x0600CF1B RID: 53019 RVA: 0x0022DA8C File Offset: 0x0022BC8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<LineupInfo> LineupList
		{
			get
			{
				return this.lineupList_;
			}
		}

		// Token: 0x17003A8D RID: 14989
		// (get) Token: 0x0600CF1C RID: 53020 RVA: 0x0022DA94 File Offset: 0x0022BC94
		// (set) Token: 0x0600CF1D RID: 53021 RVA: 0x0022DA9C File Offset: 0x0022BC9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600CF1E RID: 53022 RVA: 0x0022DAA5 File Offset: 0x0022BCA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartChallengeScRsp);
		}

		// Token: 0x0600CF1F RID: 53023 RVA: 0x0022DAB4 File Offset: 0x0022BCB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartChallengeScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.CurChallenge, other.CurChallenge) && object.Equals(this.StageInfo, other.StageInfo) && object.Equals(this.Scene, other.Scene) && this.lineupList_.Equals(other.lineupList_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CF20 RID: 53024 RVA: 0x0022DB44 File Offset: 0x0022BD44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.curChallenge_ != null)
			{
				num ^= this.CurChallenge.GetHashCode();
			}
			if (this.stageInfo_ != null)
			{
				num ^= this.StageInfo.GetHashCode();
			}
			if (this.scene_ != null)
			{
				num ^= this.Scene.GetHashCode();
			}
			num ^= this.lineupList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CF21 RID: 53025 RVA: 0x0022DBD3 File Offset: 0x0022BDD3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CF22 RID: 53026 RVA: 0x0022DBDB File Offset: 0x0022BDDB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CF23 RID: 53027 RVA: 0x0022DBE4 File Offset: 0x0022BDE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.lineupList_.WriteTo(ref output, StartChallengeScRsp._repeated_lineupList_codec);
			if (this.scene_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.Scene);
			}
			if (this.stageInfo_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.StageInfo);
			}
			if (this.curChallenge_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.CurChallenge);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CF24 RID: 53028 RVA: 0x0022DC88 File Offset: 0x0022BE88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.curChallenge_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CurChallenge);
			}
			if (this.stageInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.StageInfo);
			}
			if (this.scene_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Scene);
			}
			num += this.lineupList_.CalculateSize(StartChallengeScRsp._repeated_lineupList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CF25 RID: 53029 RVA: 0x0022DD24 File Offset: 0x0022BF24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartChallengeScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.curChallenge_ != null)
			{
				if (this.curChallenge_ == null)
				{
					this.CurChallenge = new CurChallenge();
				}
				this.CurChallenge.MergeFrom(other.CurChallenge);
			}
			if (other.stageInfo_ != null)
			{
				if (this.stageInfo_ == null)
				{
					this.StageInfo = new ChallengeStageInfo();
				}
				this.StageInfo.MergeFrom(other.StageInfo);
			}
			if (other.scene_ != null)
			{
				if (this.scene_ == null)
				{
					this.Scene = new SceneInfo();
				}
				this.Scene.MergeFrom(other.Scene);
			}
			this.lineupList_.Add(other.lineupList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CF26 RID: 53030 RVA: 0x0022DDF5 File Offset: 0x0022BFF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CF27 RID: 53031 RVA: 0x0022DE00 File Offset: 0x0022C000
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 50U)
				{
					if (num == 34U)
					{
						this.lineupList_.AddEntriesFrom(ref input, StartChallengeScRsp._repeated_lineupList_codec);
						continue;
					}
					if (num == 50U)
					{
						if (this.scene_ == null)
						{
							this.Scene = new SceneInfo();
						}
						input.ReadMessage(this.Scene);
						continue;
					}
				}
				else
				{
					if (num == 58U)
					{
						if (this.stageInfo_ == null)
						{
							this.StageInfo = new ChallengeStageInfo();
						}
						input.ReadMessage(this.StageInfo);
						continue;
					}
					if (num == 82U)
					{
						if (this.curChallenge_ == null)
						{
							this.CurChallenge = new CurChallenge();
						}
						input.ReadMessage(this.CurChallenge);
						continue;
					}
					if (num == 120U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040052FF RID: 21247
		private static readonly MessageParser<StartChallengeScRsp> _parser = new MessageParser<StartChallengeScRsp>(() => new StartChallengeScRsp());

		// Token: 0x04005300 RID: 21248
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005301 RID: 21249
		public const int CurChallengeFieldNumber = 10;

		// Token: 0x04005302 RID: 21250
		private CurChallenge curChallenge_;

		// Token: 0x04005303 RID: 21251
		public const int StageInfoFieldNumber = 7;

		// Token: 0x04005304 RID: 21252
		private ChallengeStageInfo stageInfo_;

		// Token: 0x04005305 RID: 21253
		public const int SceneFieldNumber = 6;

		// Token: 0x04005306 RID: 21254
		private SceneInfo scene_;

		// Token: 0x04005307 RID: 21255
		public const int LineupListFieldNumber = 4;

		// Token: 0x04005308 RID: 21256
		private static readonly FieldCodec<LineupInfo> _repeated_lineupList_codec = FieldCodec.ForMessage<LineupInfo>(34U, LineupInfo.Parser);

		// Token: 0x04005309 RID: 21257
		private readonly RepeatedField<LineupInfo> lineupList_ = new RepeatedField<LineupInfo>();

		// Token: 0x0400530A RID: 21258
		public const int RetcodeFieldNumber = 15;

		// Token: 0x0400530B RID: 21259
		private uint retcode_;
	}
}
